package com.nsoft.objects;

import com.nsoft.utils.Constant;

public class PageInfo {
	private String id;
	private String name;
	private String path;
	private int chapter;
	private String chapterName;
	private int hIndex;
	private int vIndex;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public void autoSetPath(String bookPath){
		this.path=bookPath+Constant.PATH_SPLITTER+
			this.chapterName+Constant.PATH_SPLITTER+
			this.id+'.'+Constant.UTIL_HTML;
				
	}
	
	public int getChapter() {
		return chapter;
	}
	public void setChapter(int chapter) {
		this.chapter = chapter;
	}
	
	public int gethIndex() {
		return hIndex;
	}
	public void sethIndex(int hIndex) {
		this.hIndex = hIndex;
	}
	
	public int getvIndex() {
		return vIndex;
	}
	public void setvIndex(int vIndex) {
		this.vIndex = vIndex;
	}

	public String getChapterName() {
		return chapterName;
	}
	public void setChapterName(String chapterName) {
		this.chapterName = chapterName;
	}

}
